﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="DocTakeUpAuction.aspx.vb" Inherits="DocTakeUpAuction" title="Untitled Page" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>Preparation FPR New Take-Up (Auction)</h1>
    <hr />
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <asp:Label ID="lblDocId" runat="server" Visible="false" />
   <div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
    <p><%--Description of the page--%></p>
    <asp:Panel ID="pnlEntry" runat="server">
    <div class="form-container" id="divContentGeneral">
        <table width="100%"><tr><td class="General-info-title" style="width:150px;"><h3>General Information</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
        <table class="form-table" cellpadding="5" cellspacing="5">
            <tr>
                <th scope="row" style="width: 250px">
                    Report Title :
                </th>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="300px" Rows="2" Textmode="MultiLine" />
                    <span style="color: Red">*</span><asp:RequiredFieldValidator runat="server" ID="rfvtxtTitle" ControlToValidate="txtTitle" ValidationGroup="Entry" ErrorMessage="Required" ForeColor="Red"
                    SetFocusOnError="true" Display="Dynamic" Width="180px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    REN :
                </th>
                <td>
                    <asp:TextBox ID="txtREN" runat="server" Width="300px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />                    
                     <%--REN Panel--%>
                     <asp:Panel ID="pnlREN" runat="server" CssClass="modalPopup" Style="display:none" Width="500px">
                     <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer">
                        <tr>
                            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-left.gif">
                            </td>
                            <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                                <thead>
                                    <tr>
                                        <td align="center" style="text-align:center" height="30"><asp:Label ID="lblRENTitle" runat="server" Text="REN" /></td>
                                        <td align="right" style="text-align:right"><asp:ImageButton ID="imgButRENClose" runat="server" AlternateText="Close" Height="20px" Width="20px" ImageUrl="~/images/style01/Btn-Close.png"  /> </td>
                                    </tr>
                                 </thead>
                                </table>    
                            </td>
                            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-right.gif">
                            </td>
                        </tr>
                        <tr>
                        <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                        <td  background="images/style01/Popup-PropertyType-middle.gif" style="background-color:white;">&nbsp;</td>
                        <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:30px" background="images/style01/Popup-left-middle.gif"></td>
                            <td  bgcolor="#FFFFFF" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height:100%; background-color:#FFFFFF;" >
                                    <tr>
                                        <td >
                                        <div style="height:500px; overflow:auto;">
                                                <table width="100%" border="0"  >
                                                    <tr>
                                                        <td>
                                                            <strong>Name</strong>
                                                        </td>                                                       
                                                    </tr>
                                                    <asp:Repeater ID="repREN" runat="server">
                                                        <ItemTemplate>
                                                            <tr>
                                                                <td>
                                                                    <asp:LinkButton ID="lnkRepREN" runat="server" 
                                                                        CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' 
                                                                        CommandName="SelectType" Text='<%#Container.DataItem("Name").ToString%>' />
                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </table>
                                            </div>                        
                                        </td>
                                    </tr>
                                </table>
                            </td>            
                            <td style="width:30px" background="images/style01/Popup-right-middle.gif"></td>
                        </tr>
                        <tr>
                            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-left.gif"></td>
                            <td style="text-align:right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-right.gif"></td>
                        </tr>
                    </table>

                    </asp:Panel>
                    <asp:Button ID="btnRENHiddenNew" runat="server" style="display:none" />
                    <cc1:ModalPopupExtender ID="mpeRENEntry" runat="server" BackgroundCssClass="modalBackground" DropShadow="false" PopupControlID="pnlREN" TargetControlID="btnRENHiddenNew" EnableViewState="True" />
                    <%--End REN Panel--%>     
                    <asp:ImageButton ID="btnSearchREN" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Lister :
                </th>
                <td>
                    <asp:TextBox ID="txtLister" runat="server" Width="300px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />                
                     <%--Lister Panel--%>
                     <asp:Panel ID="pnlLister" runat="server" CssClass="modalPopup" Style="display:none" Width="500px">
                     <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer">
                        <tr>
                            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-left.gif">
                            </td>
                            <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                                <thead>
                                    <tr>
                                        <td align="center" style="text-align:center" height="30"><asp:Label ID="lblListerTitle" runat="server" Text="Lister" /></td>
                                        <td align="right" style="text-align:right"><asp:ImageButton ID="imgButListerClose" runat="server" AlternateText="Close" Height="20px" Width="20px" ImageUrl="~/images/style01/Btn-Close.png"  /> </td>
                                    </tr>
                                 </thead>
                                </table>    
                            </td>
                            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-right.gif">
                            </td>
                        </tr>
                        <tr>
                        <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                        <td  background="images/style01/Popup-PropertyType-middle.gif" style="background-color:white;">&nbsp;</td>
                        <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:30px" background="images/style01/Popup-left-middle.gif"></td>
                            <td  bgcolor="#FFFFFF" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height:100%; background-color:#FFFFFF;" >
                                    <tr>
                                        <td >
                                        <div style="height:500px; overflow:auto;">
                                                <table width="100%" border="0"  >
                                                    <tr>
                                                        <td>
                                                            <strong>Name</strong>
                                                        </td>                                                       
                                                    </tr>
                                                    <asp:Repeater ID="repLister" runat="server">
                                                        <ItemTemplate>
                                                            <tr>
                                                                <td>
                                                                    <asp:LinkButton ID="lnkRepLister" runat="server" 
                                                                        CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' 
                                                                        CommandName="SelectType" Text='<%#Container.DataItem("Name").ToString%>' />
                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </table>
                                            </div>                        
                                        </td>
                                    </tr>
                                </table>
                            </td>            
                            <td style="width:30px" background="images/style01/Popup-right-middle.gif"></td>
                        </tr>
                        <tr>
                            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-left.gif"></td>
                            <td style="text-align:right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-right.gif"></td>
                        </tr>
                    </table>

                    </asp:Panel>
                    <asp:Button ID="btnListerHiddenNew" runat="server" style="display:none" />
                    <cc1:ModalPopupExtender ID="mpeListerEntry" runat="server" BackgroundCssClass="modalBackground" DropShadow="false" PopupControlID="pnlLister" TargetControlID="btnListerHiddenNew" EnableViewState="True" />
                    <%--End Lister Panel--%>     
                    <asp:ImageButton ID="btnSearchLister" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Date :
                </th>
                <td>
                    <asp:TextBox ID="txtDate" runat="server" Width="300px" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />
                    &nbsp;&nbsp;<asp:ImageButton runat="Server" ID="imgDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                    <cc1:CalendarExtender ID="ceDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtDate" PopupButtonID="imgDateCal" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Premise :
                </th>
                <td>
                    <asp:TextBox ID="txtPremise" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Price :
                </th>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" Width="300px" />
                </td>
            </tr>
             <tr>
                <th scope="row" style="width: 200px">
                    Date of Auction :
                </th>
                <td>
                    <asp:TextBox ID="txtAuctionDate" runat="server" Width="300px" />
                    <asp:ImageButton runat="Server" ID="imgAuctionDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                    <cc1:CalendarExtender ID="ceAuctionDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtAuctionDate" PopupButtonID="imgAuctionDateCal" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Remarks :
                </th>
                <td>
                    <asp:TextBox ID="txtRemarks" runat="server" Width="300px" TextMode="MultiLine" Rows="4" />
                </td>
            </tr>            
        </table>
        </div>
        <br />
    <div class="form-container" id="divContentContact">
        <table style="width:100%;" >
            <tr><td style="width:150px;"><div class="General-info-title"><h3>Contact Information </h3></div></td>
            <td><div class="General-info-title-line"></div></td>
            </tr>
        </table>
        <table cellpadding="5" cellspacing="5" class="form-table">
            <tr>
                <th scope="row" style="width: 150px">
                    Bank :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtBank" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Contact Person :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtContactPerson" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Contact No :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtContact" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Fax No :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtFax" runat="server" Width="300px" />
                </td>
            </tr>            
            <tr>
                <th scope="row" style="width: 150px">
                    Remarks :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtCPRemarks" runat="server" Width="300px" row="4" TextMode="MultiLine" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Commission :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtCommission" runat="server" Width="300px" />
                </td>
            </tr>
          </table>
          </div> 
        <br />
        <div class="form-container" id="div1">
        <table style="width:100%;" >
            <tr><td style="width:150px;"><div class="General-info-title"><h3>Purchaser Information </h3></div></td>
            <td><div class="General-info-title-line"></div></td>
            </tr>
        </table>
        <table cellpadding="5" cellspacing="5" class="form-table">
            <tr>
                <th scope="row" style="width: 250px">
                    Purchaser's Name :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtPurchaser" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    NRIC No :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtNRIC" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Agreed Disbursement :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtDisbursement" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Address :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtAddress" runat="server" Width="300px" Rows="4" TextMode="MultiLine" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Contact No :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtPContactNo" runat="server" Width="300px" />
                </td>
            </tr>
          </table>
          </div> 
        <br />
        <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;"><asp:Label id="lblUpdated" runat="Server" /></span></div>
    <div class="Confirmation-Container">        
        <table width="100%" style="margin-left:0px;">
                        <tr>
                            <td style="width:  570px"><div class="General-info-title-line"></div></td>
                            <td style="width:400px;">                                 
                                &nbsp;<asp:Button ID="btnBack" runat="server" Text="Back"  CssClass="search-btn" Width="60px"  />
                                &nbsp;<asp:Button ID="btnPreview" runat="server" Text="Preview"  CssClass="search-btn" Width="60px"  />
                                &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Entry" CssClass="search-btn" Width="80px"  />                            
                                &nbsp;<asp:Button ID="btnDownload" runat="server" Text="Download" ValidationGroup="Entry" CssClass="search-btn" Width="80px"  />
                                <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                                <cc1:ConfirmButtonExtender ID="CBEDownload" runat="server" TargetControlID="btnDownload" />
                            </td>
                            <td><div class="General-info-title-line"></div></td>
                        </tr>
                    </table>
                    <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;">*Required fields</span></div>
    
    </div>
    </asp:Panel>
    <asp:Panel ID="pnlPreview" runat="server">
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" ShowToolBar="false" width="100%" Height="1000px">
        <LocalReport ReportPath="report/rptDocTakeUpAuction.rdlc">
            <%--<DataSources>
                <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                    Name="dsMonthlyReport_AW_MonthlyReport" />
            </DataSources>--%>
        </LocalReport>
    </rsweb:ReportViewer>
    <%--<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetData" TypeName="dsMonthlyReportTableAdapters.">
    </asp:ObjectDataSource>--%>
    <asp:Button ID="btnBackEntry" runat="server" text="Back" CssClass="search-btn" Width="60px" />
    </asp:Panel>
</asp:Content>


